<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class LuoRule extends Model {
    use SoftDeletes;

    protected $table = 'luo_rule';
    protected $fillable = ['luo_id', 'score'];
    protected $dates = ['deleted_at'];

    public static function add($id, $score) {
        return LuoRule::create(['luo_id' => $id, 'score' => $score ]);
    }
}
